<script setup lang="ts">
import { getModelImgs } from '@/utils/custom-sdk/service';

const props = defineProps<{ modelId: string }>()

const modelImg = ref('')
watchEffect(async () => {
  const { modelId } = props
  modelImg.value = (await getModelImgs([modelId]))[0].imgData
})
</script>

<template>
  <AAvatar :src="modelImg" /> 
</template>